package com.example.everything_is_possible;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class SelectActivity extends AppCompatActivity {

    private Button mbtn_app1;
    private Button mbtn_app2;
    private Button mbtn_app3;
    private Button mbtn_app4;

    private Button mbtn_back;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_select);

        mbtn_app1 = findViewById(R.id.app_1);
        mbtn_app2 = findViewById(R.id.app_2);
        mbtn_app3 = findViewById(R.id.app_3);
        mbtn_app4 = findViewById(R.id.app_4);

        mbtn_back = findViewById(R.id.btn_ex);


        mbtn_app1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(SelectActivity.this,translateActivity.class);
                startActivity(intent);
            }
        });

        mbtn_app2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(SelectActivity.this,LengthActivity.class);
                startActivity(intent);
            }
        });

        mbtn_app3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(SelectActivity.this,WeightActivity.class);
                startActivity(intent);
            }
        });

        mbtn_app4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(SelectActivity.this,RuleActivity.class);
                startActivity(intent);
            }
        });

        mbtn_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(SelectActivity.this,FenleiActivity.class);
                startActivity(intent);
            }
        });

    }
}